3.1311 \(\int \frac{(a+b \sec (c+d x))^3 (A+B \sec (c+d x)+C \sec ^2(c+d x))}{\sqrt{\cos (c+d x)}} \, dx\)
Optimal. Leaf size=357 \[ \frac{2 \text{EllipticF}\left (\frac{1}{2} (c+d x),2\right ) \left (7 a^3 (3 A+C)+21 a^2 b B+3 a b^2 (7 A+5 C)+5 b^3 B\right )}{21 d}-\frac{2 E\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \left (9 a^2 b (5 A+3 C)+15 a^3 B+27 a b^2 B+b^3 (9 A+7 C)\right )}{15 d}+\frac{2 \sin (c+d x) \left (54 a^2 b B+8 a^3 C+9 a b^2 (7 A+5 C)+15 b^3 B\right )}{63 d \cos ^{\frac{3}{2}}(c+d x)}+\frac{2 b \sin (c+d x) \left (24 a^2 C+99 a b B+63 A b^2+49 b^2 C\right )}{315 d \cos ^{\frac{5}{2}}(c+d x)}+\frac{2 \sin (c+d x) \left (9 a^2 b (5 A+3 C)+15 a^3 B+27 a b^2 B+b^3 (9 A+7 C)\right )}{15 d \sqrt{\cos (c+d x)}}+\frac{2 (2 a C+3 b B) \sin (c+d x) (a \cos (c+d x)+b)^2}{21 d \cos ^{\frac{7}{2}}(c+d x)}+\frac{2 C \sin (c+d x) (a \cos (c+d x)+b)^3}{9 d \cos ^{\frac{9}{2}}(c+d x)} \]
[Out]
(-2*(15*a^3*B + 27*a*b^2*B + 9*a^2*b*(5*A + 3*C) + b^3*(9*A + 7*C))*EllipticE[(c + d*x)/2, 2])/(15*d) + (2*(21
*a^2*b*B + 5*b^3*B + 7*a^3*(3*A + C) + 3*a*b^2*(7*A + 5*C))*EllipticF[(c + d*x)/2, 2])/(21*d) + (2*b*(63*A*b^2
+ 99*a*b*B + 24*a^2*C + 49*b^2*C)*Sin[c + d*x])/(315*d*Cos[c + d*x]^(5/2)) + (2*(54*a^2*b*B + 15*b^3*B + 8*a^
3*C + 9*a*b^2*(7*A + 5*C))*Sin[c + d*x])/(63*d*Cos[c + d*x]^(3/2)) + (2*(15*a^3*B + 27*a*b^2*B + 9*a^2*b*(5*A
+ 3*C) + b^3*(9*A + 7*C))*Sin[c + d*x])/(15*d*Sqrt[Cos[c + d*x]]) + (2*(3*b*B + 2*a*C)*(b + a*Cos[c + d*x])^2*
Sin[c + d*x])/(21*d*Cos[c + d*x]^(7/2)) + (2*C*(b + a*Cos[c + d*x])^3*Sin[c + d*x])/(9*d*Cos[c + d*x]^(9/2))
________________________________________________________________________________________
Rubi [A] time = 0.974086, antiderivative size = 357, normalized size of antiderivative = 1.,
number of steps used = 9, number of rules used = 8, integrand size = 43, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.186, Rules used =
{4112, 3047, 3031, 3021, 2748, 2636, 2639, 2641} \[ \frac{2 F\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \left (7 a^3 (3 A+C)+21 a^2 b B+3 a b^2 (7 A+5 C)+5 b^3 B\right )}{21 d}-\frac{2 E\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \left (9 a^2 b (5 A+3 C)+15 a^3 B+27 a b^2 B+b^3 (9 A+7 C)\right )}{15 d}+\frac{2 \sin (c+d x) \left (54 a^2 b B+8 a^3 C+9 a b^2 (7 A+5 C)+15 b^3 B\right )}{63 d \cos ^{\frac{3}{2}}(c+d x)}+\frac{2 b \sin (c+d x) \left (24 a^2 C+99 a b B+63 A b^2+49 b^2 C\right )}{315 d \cos ^{\frac{5}{2}}(c+d x)}+\frac{2 \sin (c+d x) \left (9 a^2 b (5 A+3 C)+15 a^3 B+27 a b^2 B+b^3 (9 A+7 C)\right )}{15 d \sqrt{\cos (c+d x)}}+\frac{2 (2 a C+3 b B) \sin (c+d x) (a \cos (c+d x)+b)^2}{21 d \cos ^{\frac{7}{2}}(c+d x)}+\frac{2 C \sin (c+d x) (a \cos (c+d x)+b)^3}{9 d \cos ^{\frac{9}{2}}(c+d x)} \]
Antiderivative was successfully verified.
[In]
Int[((a + b*Sec[c + d*x])^3*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2))/Sqrt[Cos[c + d*x]],x]
[Out]
(-2*(15*a^3*B + 27*a*b^2*B + 9*a^2*b*(5*A + 3*C) + b^3*(9*A + 7*C))*EllipticE[(c + d*x)/2, 2])/(15*d) + (2*(21
*a^2*b*B + 5*b^3*B + 7*a^3*(3*A + C) + 3*a*b^2*(7*A + 5*C))*EllipticF[(c + d*x)/2, 2])/(21*d) + (2*b*(63*A*b^2
+ 99*a*b*B + 24*a^2*C + 49*b^2*C)*Sin[c + d*x])/(315*d*Cos[c + d*x]^(5/2)) + (2*(54*a^2*b*B + 15*b^3*B + 8*a^
3*C + 9*a*b^2*(7*A + 5*C))*Sin[c + d*x])/(63*d*Cos[c + d*x]^(3/2)) + (2*(15*a^3*B + 27*a*b^2*B + 9*a^2*b*(5*A
+ 3*C) + b^3*(9*A + 7*C))*Sin[c + d*x])/(15*d*Sqrt[Cos[c + d*x]]) + (2*(3*b*B + 2*a*C)*(b + a*Cos[c + d*x])^2*
Sin[c + d*x])/(21*d*Cos[c + d*x]^(7/2)) + (2*C*(b + a*Cos[c + d*x])^3*Sin[c + d*x])/(9*d*Cos[c + d*x]^(9/2))
Rule 4112
Int[(cos[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*((a_) + (b_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sec[(e_.)
+ (f_.)*(x_)] + (C_.)*sec[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Dist[d^(m + 2), Int[(b + a*Cos[e + f*x])^m*(d*
Cos[e + f*x])^(n - m - 2)*(C + B*Cos[e + f*x] + A*Cos[e + f*x]^2), x], x] /; FreeQ[{a, b, d, e, f, A, B, C, n}
, x] && !IntegerQ[n] && IntegerQ[m]
Rule 3047
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_)*((A_.) + (B_.)*s
in[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> -Simp[((c^2*C - B*c*d + A*d^2)*Cos[e +
f*x]*(a + b*Sin[e + f*x])^m*(c + d*Sin[e + f*x])^(n + 1))/(d*f*(n + 1)*(c^2 - d^2)), x] + Dist[1/(d*(n + 1)*(
c^2 - d^2)), Int[(a + b*Sin[e + f*x])^(m - 1)*(c + d*Sin[e + f*x])^(n + 1)*Simp[A*d*(b*d*m + a*c*(n + 1)) + (c
*C - B*d)*(b*c*m + a*d*(n + 1)) - (d*(A*(a*d*(n + 2) - b*c*(n + 1)) + B*(b*d*(n + 1) - a*c*(n + 2))) - C*(b*c*
d*(n + 1) - a*(c^2 + d^2*(n + 1))))*Sin[e + f*x] + b*(d*(B*c - A*d)*(m + n + 2) - C*(c^2*(m + 1) + d^2*(n + 1)
))*Sin[e + f*x]^2, x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2,
0] && NeQ[c^2 - d^2, 0] && GtQ[m, 0] && LtQ[n, -1]
Rule 3031
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])*((A_.) + (B_.)*sin[(e
_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> -Simp[((b*c - a*d)*(A*b^2 - a*b*B + a^2*C)*
Cos[e + f*x]*(a + b*Sin[e + f*x])^(m + 1))/(b^2*f*(m + 1)*(a^2 - b^2)), x] - Dist[1/(b^2*(m + 1)*(a^2 - b^2)),
Int[(a + b*Sin[e + f*x])^(m + 1)*Simp[b*(m + 1)*((b*B - a*C)*(b*c - a*d) - A*b*(a*c - b*d)) + (b*B*(a^2*d + b
^2*d*(m + 1) - a*b*c*(m + 2)) + (b*c - a*d)*(A*b^2*(m + 2) + C*(a^2 + b^2*(m + 1))))*Sin[e + f*x] - b*C*d*(m +
1)*(a^2 - b^2)*Sin[e + f*x]^2, x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C}, x] && NeQ[b*c - a*d, 0] && Ne
Q[a^2 - b^2, 0] && LtQ[m, -1]
Rule 3021
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f
_.)*(x_)]^2), x_Symbol] :> -Simp[((A*b^2 - a*b*B + a^2*C)*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m + 1))/(b*f*(m +
1)*(a^2 - b^2)), x] + Dist[1/(b*(m + 1)*(a^2 - b^2)), Int[(a + b*Sin[e + f*x])^(m + 1)*Simp[b*(a*A - b*B + a*
C)*(m + 1) - (A*b^2 - a*b*B + a^2*C + b*(A*b - a*B + b*C)*(m + 1))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, e,
f, A, B, C}, x] && LtQ[m, -1] && NeQ[a^2 - b^2, 0]
Rule 2748
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[c, Int[(b*S
in[e + f*x])^m, x], x] + Dist[d/b, Int[(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]
Rule 2636
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(Cos[c + d*x]*(b*Sin[c + d*x])^(n + 1))/(b*d*(n +
1)), x] + Dist[(n + 2)/(b^2*(n + 1)), Int[(b*Sin[c + d*x])^(n + 2), x], x] /; FreeQ[{b, c, d}, x] && LtQ[n, -1
] && IntegerQ[2*n]
Rule 2639
Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2*EllipticE[(1*(c - Pi/2 + d*x))/2, 2])/d, x] /; FreeQ[{
c, d}, x]
Rule 2641
Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2*EllipticF[(1*(c - Pi/2 + d*x))/2, 2])/d, x] /; FreeQ
[{c, d}, x]
Rubi steps
\begin{align*} \int \frac{(a+b \sec (c+d x))^3 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sqrt{\cos (c+d x)}} \, dx &=\int \frac{(b+a \cos (c+d x))^3 \left (C+B \cos (c+d x)+A \cos ^2(c+d x)\right )}{\cos ^{\frac{11}{2}}(c+d x)} \, dx\\ &=\frac{2 C (b+a \cos (c+d x))^3 \sin (c+d x)}{9 d \cos ^{\frac{9}{2}}(c+d x)}+\frac{2}{9} \int \frac{(b+a \cos (c+d x))^2 \left (\frac{3}{2} (3 b B+2 a C)+\frac{1}{2} (9 A b+9 a B+7 b C) \cos (c+d x)+\frac{1}{2} a (9 A+C) \cos ^2(c+d x)\right )}{\cos ^{\frac{9}{2}}(c+d x)} \, dx\\ &=\frac{2 (3 b B+2 a C) (b+a \cos (c+d x))^2 \sin (c+d x)}{21 d \cos ^{\frac{7}{2}}(c+d x)}+\frac{2 C (b+a \cos (c+d x))^3 \sin (c+d x)}{9 d \cos ^{\frac{9}{2}}(c+d x)}+\frac{4}{63} \int \frac{(b+a \cos (c+d x)) \left (\frac{1}{4} \left (63 A b^2+99 a b B+24 a^2 C+49 b^2 C\right )+\frac{1}{4} \left (126 a A b+63 a^2 B+45 b^2 B+86 a b C\right ) \cos (c+d x)+\frac{1}{4} a (63 a A+9 b B+13 a C) \cos ^2(c+d x)\right )}{\cos ^{\frac{7}{2}}(c+d x)} \, dx\\ &=\frac{2 b \left (63 A b^2+99 a b B+24 a^2 C+49 b^2 C\right ) \sin (c+d x)}{315 d \cos ^{\frac{5}{2}}(c+d x)}+\frac{2 (3 b B+2 a C) (b+a \cos (c+d x))^2 \sin (c+d x)}{21 d \cos ^{\frac{7}{2}}(c+d x)}+\frac{2 C (b+a \cos (c+d x))^3 \sin (c+d x)}{9 d \cos ^{\frac{9}{2}}(c+d x)}-\frac{8}{315} \int \frac{-\frac{15}{8} \left (54 a^2 b B+15 b^3 B+8 a^3 C+9 a b^2 (7 A+5 C)\right )-\frac{21}{8} \left (15 a^3 B+27 a b^2 B+9 a^2 b (5 A+3 C)+b^3 (9 A+7 C)\right ) \cos (c+d x)-\frac{5}{8} a^2 (63 a A+9 b B+13 a C) \cos ^2(c+d x)}{\cos ^{\frac{5}{2}}(c+d x)} \, dx\\ &=\frac{2 b \left (63 A b^2+99 a b B+24 a^2 C+49 b^2 C\right ) \sin (c+d x)}{315 d \cos ^{\frac{5}{2}}(c+d x)}+\frac{2 \left (54 a^2 b B+15 b^3 B+8 a^3 C+9 a b^2 (7 A+5 C)\right ) \sin (c+d x)}{63 d \cos ^{\frac{3}{2}}(c+d x)}+\frac{2 (3 b B+2 a C) (b+a \cos (c+d x))^2 \sin (c+d x)}{21 d \cos ^{\frac{7}{2}}(c+d x)}+\frac{2 C (b+a \cos (c+d x))^3 \sin (c+d x)}{9 d \cos ^{\frac{9}{2}}(c+d x)}-\frac{16}{945} \int \frac{-\frac{63}{16} \left (15 a^3 B+27 a b^2 B+9 a^2 b (5 A+3 C)+b^3 (9 A+7 C)\right )-\frac{45}{16} \left (21 a^2 b B+5 b^3 B+7 a^3 (3 A+C)+3 a b^2 (7 A+5 C)\right ) \cos (c+d x)}{\cos ^{\frac{3}{2}}(c+d x)} \, dx\\ &=\frac{2 b \left (63 A b^2+99 a b B+24 a^2 C+49 b^2 C\right ) \sin (c+d x)}{315 d \cos ^{\frac{5}{2}}(c+d x)}+\frac{2 \left (54 a^2 b B+15 b^3 B+8 a^3 C+9 a b^2 (7 A+5 C)\right ) \sin (c+d x)}{63 d \cos ^{\frac{3}{2}}(c+d x)}+\frac{2 (3 b B+2 a C) (b+a \cos (c+d x))^2 \sin (c+d x)}{21 d \cos ^{\frac{7}{2}}(c+d x)}+\frac{2 C (b+a \cos (c+d x))^3 \sin (c+d x)}{9 d \cos ^{\frac{9}{2}}(c+d x)}-\frac{1}{21} \left (-21 a^2 b B-5 b^3 B-7 a^3 (3 A+C)-3 a b^2 (7 A+5 C)\right ) \int \frac{1}{\sqrt{\cos (c+d x)}} \, dx-\frac{1}{15} \left (-15 a^3 B-27 a b^2 B-9 a^2 b (5 A+3 C)-b^3 (9 A+7 C)\right ) \int \frac{1}{\cos ^{\frac{3}{2}}(c+d x)} \, dx\\ &=\frac{2 \left (21 a^2 b B+5 b^3 B+7 a^3 (3 A+C)+3 a b^2 (7 A+5 C)\right ) F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{21 d}+\frac{2 b \left (63 A b^2+99 a b B+24 a^2 C+49 b^2 C\right ) \sin (c+d x)}{315 d \cos ^{\frac{5}{2}}(c+d x)}+\frac{2 \left (54 a^2 b B+15 b^3 B+8 a^3 C+9 a b^2 (7 A+5 C)\right ) \sin (c+d x)}{63 d \cos ^{\frac{3}{2}}(c+d x)}+\frac{2 \left (15 a^3 B+27 a b^2 B+9 a^2 b (5 A+3 C)+b^3 (9 A+7 C)\right ) \sin (c+d x)}{15 d \sqrt{\cos (c+d x)}}+\frac{2 (3 b B+2 a C) (b+a \cos (c+d x))^2 \sin (c+d x)}{21 d \cos ^{\frac{7}{2}}(c+d x)}+\frac{2 C (b+a \cos (c+d x))^3 \sin (c+d x)}{9 d \cos ^{\frac{9}{2}}(c+d x)}-\frac{1}{15} \left (15 a^3 B+27 a b^2 B+9 a^2 b (5 A+3 C)+b^3 (9 A+7 C)\right ) \int \sqrt{\cos (c+d x)} \, dx\\ &=-\frac{2 \left (15 a^3 B+27 a b^2 B+9 a^2 b (5 A+3 C)+b^3 (9 A+7 C)\right ) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{15 d}+\frac{2 \left (21 a^2 b B+5 b^3 B+7 a^3 (3 A+C)+3 a b^2 (7 A+5 C)\right ) F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{21 d}+\frac{2 b \left (63 A b^2+99 a b B+24 a^2 C+49 b^2 C\right ) \sin (c+d x)}{315 d \cos ^{\frac{5}{2}}(c+d x)}+\frac{2 \left (54 a^2 b B+15 b^3 B+8 a^3 C+9 a b^2 (7 A+5 C)\right ) \sin (c+d x)}{63 d \cos ^{\frac{3}{2}}(c+d x)}+\frac{2 \left (15 a^3 B+27 a b^2 B+9 a^2 b (5 A+3 C)+b^3 (9 A+7 C)\right ) \sin (c+d x)}{15 d \sqrt{\cos (c+d x)}}+\frac{2 (3 b B+2 a C) (b+a \cos (c+d x))^2 \sin (c+d x)}{21 d \cos ^{\frac{7}{2}}(c+d x)}+\frac{2 C (b+a \cos (c+d x))^3 \sin (c+d x)}{9 d \cos ^{\frac{9}{2}}(c+d x)}\\ \end{align*}
Mathematica [C] time = 8.2908, size = 3345, normalized size = 9.37 \[ \text{Result too large to show} \]
Warning: Unable to verify antiderivative.
[In]
Integrate[((a + b*Sec[c + d*x])^3*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2))/Sqrt[Cos[c + d*x]],x]
[Out]
(Cos[c + d*x]^(11/2)*(a + b*Sec[c + d*x])^3*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)*((4*(45*a^2*A*b + 9*A*b^3
+ 15*a^3*B + 27*a*b^2*B + 27*a^2*b*C + 7*b^3*C)*Csc[c]*Sec[c])/(15*d) + (4*b^3*C*Sec[c]*Sec[c + d*x]^5*Sin[d*x
])/(9*d) + (4*Sec[c]*Sec[c + d*x]^4*(7*b^3*C*Sin[c] + 9*b^3*B*Sin[d*x] + 27*a*b^2*C*Sin[d*x]))/(63*d) + (4*Sec
[c]*Sec[c + d*x]^2*(63*A*b^3*Sin[c] + 189*a*b^2*B*Sin[c] + 189*a^2*b*C*Sin[c] + 49*b^3*C*Sin[c] + 315*a*A*b^2*
Sin[d*x] + 315*a^2*b*B*Sin[d*x] + 75*b^3*B*Sin[d*x] + 105*a^3*C*Sin[d*x] + 225*a*b^2*C*Sin[d*x]))/(315*d) + (4
*Sec[c]*Sec[c + d*x]^3*(45*b^3*B*Sin[c] + 135*a*b^2*C*Sin[c] + 63*A*b^3*Sin[d*x] + 189*a*b^2*B*Sin[d*x] + 189*
a^2*b*C*Sin[d*x] + 49*b^3*C*Sin[d*x]))/(315*d) + (4*Sec[c]*Sec[c + d*x]*(105*a*A*b^2*Sin[c] + 105*a^2*b*B*Sin[
c] + 25*b^3*B*Sin[c] + 35*a^3*C*Sin[c] + 75*a*b^2*C*Sin[c] + 315*a^2*A*b*Sin[d*x] + 63*A*b^3*Sin[d*x] + 105*a^
3*B*Sin[d*x] + 189*a*b^2*B*Sin[d*x] + 189*a^2*b*C*Sin[d*x] + 49*b^3*C*Sin[d*x]))/(105*d)))/((b + a*Cos[c + d*x
])^3*(A + 2*C + 2*B*Cos[c + d*x] + A*Cos[2*c + 2*d*x])) - (4*a^3*A*Cos[c + d*x]^5*Csc[c]*HypergeometricPFQ[{1/
4, 1/2}, {5/4}, Sin[d*x - ArcTan[Cot[c]]]^2]*(a + b*Sec[c + d*x])^3*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)*Se
c[d*x - ArcTan[Cot[c]]]*Sqrt[1 - Sin[d*x - ArcTan[Cot[c]]]]*Sqrt[-(Sqrt[1 + Cot[c]^2]*Sin[c]*Sin[d*x - ArcTan[
Cot[c]]])]*Sqrt[1 + Sin[d*x - ArcTan[Cot[c]]]])/(d*(b + a*Cos[c + d*x])^3*(A + 2*C + 2*B*Cos[c + d*x] + A*Cos[
2*c + 2*d*x])*Sqrt[1 + Cot[c]^2]) - (4*a*A*b^2*Cos[c + d*x]^5*Csc[c]*HypergeometricPFQ[{1/4, 1/2}, {5/4}, Sin[
d*x - ArcTan[Cot[c]]]^2]*(a + b*Sec[c + d*x])^3*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)*Sec[d*x - ArcTan[Cot[c
]]]*Sqrt[1 - Sin[d*x - ArcTan[Cot[c]]]]*Sqrt[-(Sqrt[1 + Cot[c]^2]*Sin[c]*Sin[d*x - ArcTan[Cot[c]]])]*Sqrt[1 +
Sin[d*x - ArcTan[Cot[c]]]])/(d*(b + a*Cos[c + d*x])^3*(A + 2*C + 2*B*Cos[c + d*x] + A*Cos[2*c + 2*d*x])*Sqrt[1
+ Cot[c]^2]) - (4*a^2*b*B*Cos[c + d*x]^5*Csc[c]*HypergeometricPFQ[{1/4, 1/2}, {5/4}, Sin[d*x - ArcTan[Cot[c]]
]^2]*(a + b*Sec[c + d*x])^3*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)*Sec[d*x - ArcTan[Cot[c]]]*Sqrt[1 - Sin[d*x
- ArcTan[Cot[c]]]]*Sqrt[-(Sqrt[1 + Cot[c]^2]*Sin[c]*Sin[d*x - ArcTan[Cot[c]]])]*Sqrt[1 + Sin[d*x - ArcTan[Cot
[c]]]])/(d*(b + a*Cos[c + d*x])^3*(A + 2*C + 2*B*Cos[c + d*x] + A*Cos[2*c + 2*d*x])*Sqrt[1 + Cot[c]^2]) - (20*
b^3*B*Cos[c + d*x]^5*Csc[c]*HypergeometricPFQ[{1/4, 1/2}, {5/4}, Sin[d*x - ArcTan[Cot[c]]]^2]*(a + b*Sec[c + d
*x])^3*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)*Sec[d*x - ArcTan[Cot[c]]]*Sqrt[1 - Sin[d*x - ArcTan[Cot[c]]]]*S
qrt[-(Sqrt[1 + Cot[c]^2]*Sin[c]*Sin[d*x - ArcTan[Cot[c]]])]*Sqrt[1 + Sin[d*x - ArcTan[Cot[c]]]])/(21*d*(b + a*
Cos[c + d*x])^3*(A + 2*C + 2*B*Cos[c + d*x] + A*Cos[2*c + 2*d*x])*Sqrt[1 + Cot[c]^2]) - (4*a^3*C*Cos[c + d*x]^
5*Csc[c]*HypergeometricPFQ[{1/4, 1/2}, {5/4}, Sin[d*x - ArcTan[Cot[c]]]^2]*(a + b*Sec[c + d*x])^3*(A + B*Sec[c
+ d*x] + C*Sec[c + d*x]^2)*Sec[d*x - ArcTan[Cot[c]]]*Sqrt[1 - Sin[d*x - ArcTan[Cot[c]]]]*Sqrt[-(Sqrt[1 + Cot[
c]^2]*Sin[c]*Sin[d*x - ArcTan[Cot[c]]])]*Sqrt[1 + Sin[d*x - ArcTan[Cot[c]]]])/(3*d*(b + a*Cos[c + d*x])^3*(A +
2*C + 2*B*Cos[c + d*x] + A*Cos[2*c + 2*d*x])*Sqrt[1 + Cot[c]^2]) - (20*a*b^2*C*Cos[c + d*x]^5*Csc[c]*Hypergeo
metricPFQ[{1/4, 1/2}, {5/4}, Sin[d*x - ArcTan[Cot[c]]]^2]*(a + b*Sec[c + d*x])^3*(A + B*Sec[c + d*x] + C*Sec[c
+ d*x]^2)*Sec[d*x - ArcTan[Cot[c]]]*Sqrt[1 - Sin[d*x - ArcTan[Cot[c]]]]*Sqrt[-(Sqrt[1 + Cot[c]^2]*Sin[c]*Sin[
d*x - ArcTan[Cot[c]]])]*Sqrt[1 + Sin[d*x - ArcTan[Cot[c]]]])/(7*d*(b + a*Cos[c + d*x])^3*(A + 2*C + 2*B*Cos[c
+ d*x] + A*Cos[2*c + 2*d*x])*Sqrt[1 + Cot[c]^2]) + (6*a^2*A*b*Cos[c + d*x]^5*Csc[c]*(a + b*Sec[c + d*x])^3*(A
+ B*Sec[c + d*x] + C*Sec[c + d*x]^2)*((HypergeometricPFQ[{-1/2, -1/4}, {3/4}, Cos[d*x + ArcTan[Tan[c]]]^2]*Sin
[d*x + ArcTan[Tan[c]]]*Tan[c])/(Sqrt[1 - Cos[d*x + ArcTan[Tan[c]]]]*Sqrt[1 + Cos[d*x + ArcTan[Tan[c]]]]*Sqrt[C
os[c]*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2]]*Sqrt[1 + Tan[c]^2]) - ((Sin[d*x + ArcTan[Tan[c]]]*Tan[c])/
Sqrt[1 + Tan[c]^2] + (2*Cos[c]^2*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2])/(Cos[c]^2 + Sin[c]^2))/Sqrt[Cos
[c]*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2]]))/(d*(b + a*Cos[c + d*x])^3*(A + 2*C + 2*B*Cos[c + d*x] + A*
Cos[2*c + 2*d*x])) + (6*A*b^3*Cos[c + d*x]^5*Csc[c]*(a + b*Sec[c + d*x])^3*(A + B*Sec[c + d*x] + C*Sec[c + d*x
]^2)*((HypergeometricPFQ[{-1/2, -1/4}, {3/4}, Cos[d*x + ArcTan[Tan[c]]]^2]*Sin[d*x + ArcTan[Tan[c]]]*Tan[c])/(
Sqrt[1 - Cos[d*x + ArcTan[Tan[c]]]]*Sqrt[1 + Cos[d*x + ArcTan[Tan[c]]]]*Sqrt[Cos[c]*Cos[d*x + ArcTan[Tan[c]]]*
Sqrt[1 + Tan[c]^2]]*Sqrt[1 + Tan[c]^2]) - ((Sin[d*x + ArcTan[Tan[c]]]*Tan[c])/Sqrt[1 + Tan[c]^2] + (2*Cos[c]^2
*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2])/(Cos[c]^2 + Sin[c]^2))/Sqrt[Cos[c]*Cos[d*x + ArcTan[Tan[c]]]*Sq
rt[1 + Tan[c]^2]]))/(5*d*(b + a*Cos[c + d*x])^3*(A + 2*C + 2*B*Cos[c + d*x] + A*Cos[2*c + 2*d*x])) + (2*a^3*B*
Cos[c + d*x]^5*Csc[c]*(a + b*Sec[c + d*x])^3*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)*((HypergeometricPFQ[{-1/2
, -1/4}, {3/4}, Cos[d*x + ArcTan[Tan[c]]]^2]*Sin[d*x + ArcTan[Tan[c]]]*Tan[c])/(Sqrt[1 - Cos[d*x + ArcTan[Tan[
c]]]]*Sqrt[1 + Cos[d*x + ArcTan[Tan[c]]]]*Sqrt[Cos[c]*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2]]*Sqrt[1 + T
an[c]^2]) - ((Sin[d*x + ArcTan[Tan[c]]]*Tan[c])/Sqrt[1 + Tan[c]^2] + (2*Cos[c]^2*Cos[d*x + ArcTan[Tan[c]]]*Sqr
t[1 + Tan[c]^2])/(Cos[c]^2 + Sin[c]^2))/Sqrt[Cos[c]*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2]]))/(d*(b + a*
Cos[c + d*x])^3*(A + 2*C + 2*B*Cos[c + d*x] + A*Cos[2*c + 2*d*x])) + (18*a*b^2*B*Cos[c + d*x]^5*Csc[c]*(a + b*
Sec[c + d*x])^3*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)*((HypergeometricPFQ[{-1/2, -1/4}, {3/4}, Cos[d*x + Arc
Tan[Tan[c]]]^2]*Sin[d*x + ArcTan[Tan[c]]]*Tan[c])/(Sqrt[1 - Cos[d*x + ArcTan[Tan[c]]]]*Sqrt[1 + Cos[d*x + ArcT
an[Tan[c]]]]*Sqrt[Cos[c]*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2]]*Sqrt[1 + Tan[c]^2]) - ((Sin[d*x + ArcTa
n[Tan[c]]]*Tan[c])/Sqrt[1 + Tan[c]^2] + (2*Cos[c]^2*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2])/(Cos[c]^2 +
Sin[c]^2))/Sqrt[Cos[c]*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2]]))/(5*d*(b + a*Cos[c + d*x])^3*(A + 2*C +
2*B*Cos[c + d*x] + A*Cos[2*c + 2*d*x])) + (18*a^2*b*C*Cos[c + d*x]^5*Csc[c]*(a + b*Sec[c + d*x])^3*(A + B*Sec[
c + d*x] + C*Sec[c + d*x]^2)*((HypergeometricPFQ[{-1/2, -1/4}, {3/4}, Cos[d*x + ArcTan[Tan[c]]]^2]*Sin[d*x + A
rcTan[Tan[c]]]*Tan[c])/(Sqrt[1 - Cos[d*x + ArcTan[Tan[c]]]]*Sqrt[1 + Cos[d*x + ArcTan[Tan[c]]]]*Sqrt[Cos[c]*Co
s[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2]]*Sqrt[1 + Tan[c]^2]) - ((Sin[d*x + ArcTan[Tan[c]]]*Tan[c])/Sqrt[1 +
Tan[c]^2] + (2*Cos[c]^2*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2])/(Cos[c]^2 + Sin[c]^2))/Sqrt[Cos[c]*Cos[
d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2]]))/(5*d*(b + a*Cos[c + d*x])^3*(A + 2*C + 2*B*Cos[c + d*x] + A*Cos[2*
c + 2*d*x])) + (14*b^3*C*Cos[c + d*x]^5*Csc[c]*(a + b*Sec[c + d*x])^3*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)*
((HypergeometricPFQ[{-1/2, -1/4}, {3/4}, Cos[d*x + ArcTan[Tan[c]]]^2]*Sin[d*x + ArcTan[Tan[c]]]*Tan[c])/(Sqrt[
1 - Cos[d*x + ArcTan[Tan[c]]]]*Sqrt[1 + Cos[d*x + ArcTan[Tan[c]]]]*Sqrt[Cos[c]*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[
1 + Tan[c]^2]]*Sqrt[1 + Tan[c]^2]) - ((Sin[d*x + ArcTan[Tan[c]]]*Tan[c])/Sqrt[1 + Tan[c]^2] + (2*Cos[c]^2*Cos[
d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2])/(Cos[c]^2 + Sin[c]^2))/Sqrt[Cos[c]*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1
+ Tan[c]^2]]))/(15*d*(b + a*Cos[c + d*x])^3*(A + 2*C + 2*B*Cos[c + d*x] + A*Cos[2*c + 2*d*x]))
________________________________________________________________________________________
Maple [B] time = 13.236, size = 1292, normalized size = 3.6 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((a+b*sec(d*x+c))^3*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2),x)
[Out]
-(-(-2*cos(1/2*d*x+1/2*c)^2+1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))*
(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)+2*a^2*(3*A*b+B*a)*(-(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1
/2*d*x+1/2*c)^2-1)^(1/2)*(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(
1/2))+2*(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)*cos(1/2*d*x+1/2*c)*sin(1/2*d*x+1/2*c)^2)/sin(1/2*
d*x+1/2*c)^2/(2*sin(1/2*d*x+1/2*c)^2-1))/sin(1/2*d*x+1/2*c)/(2*cos(1/2*d*x+1/2*c)^2-1)^(1/2)/d
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+b*sec(d*x+c))^3*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2),x, algorithm="maxima")
[Out]
Timed out
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{C b^{3} \sec \left (d x + c\right )^{5} +{\left (3 \, C a b^{2} + B b^{3}\right )} \sec \left (d x + c\right )^{4} + A a^{3} +{\left (3 \, C a^{2} b + 3 \, B a b^{2} + A b^{3}\right )} \sec \left (d x + c\right )^{3} +{\left (C a^{3} + 3 \, B a^{2} b + 3 \, A a b^{2}\right )} \sec \left (d x + c\right )^{2} +{\left (B a^{3} + 3 \, A a^{2} b\right )} \sec \left (d x + c\right )}{\sqrt{\cos \left (d x + c\right )}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+b*sec(d*x+c))^3*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2),x, algorithm="fricas")
[Out]
integral((C*b^3*sec(d*x + c)^5 + (3*C*a*b^2 + B*b^3)*sec(d*x + c)^4 + A*a^3 + (3*C*a^2*b + 3*B*a*b^2 + A*b^3)*
sec(d*x + c)^3 + (C*a^3 + 3*B*a^2*b + 3*A*a*b^2)*sec(d*x + c)^2 + (B*a^3 + 3*A*a^2*b)*sec(d*x + c))/sqrt(cos(d
*x + c)), x)
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+b*sec(d*x+c))**3*(A+B*sec(d*x+c)+C*sec(d*x+c)**2)/cos(d*x+c)**(1/2),x)
[Out]
Timed out
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )}{\left (b \sec \left (d x + c\right ) + a\right )}^{3}}{\sqrt{\cos \left (d x + c\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+b*sec(d*x+c))^3*(A+B*sec(d*x+c)+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2),x, algorithm="giac")
[Out]
integrate((C*sec(d*x + c)^2 + B*sec(d*x + c) + A)*(b*sec(d*x + c) + a)^3/sqrt(cos(d*x + c)), x)